/*    */ package org.jeecgframework.p3.cg.task;
/*    */ 
/*    */ import java.util.concurrent.Callable;
/*    */ import org.jeecgframework.p3.cg.TableInfo;
/*    */ import org.jeecgframework.p3.cg.def.FtlDef;
/*    */ import org.jeecgframework.p3.cg.factory.CodeGenerateFactory;
/*    */ 
/*    */ 
/*    */ public class CodeGenerateTask
/*    */   implements Callable<Boolean>
/*    */ {
/*    */   private TableInfo tableInfo;
/*    */   
/*    */   public CodeGenerateTask(TableInfo tableInfo)
/*    */   {
/* 16 */     this.tableInfo = tableInfo;
/*    */   }
/*    */   
/*    */   public Boolean call() throws Exception {
/* 20 */     boolean flag = false;
/*    */     try {
/* 22 */       CodeGenerateFactory.codeGenerateByFTL(this.tableInfo.getTableName(), this.tableInfo.getTableComment(), FtlDef.KEY_TYPE_02);
/* 23 */       flag = true;
/*    */     } catch (Exception e) {
/* 25 */       e.printStackTrace();
/*    */     }
/* 27 */     return Boolean.valueOf(flag);
/*    */   }
/*    */ }


/* Location:              /Users/guo/.m2/repository/org/jeewxframework/P3-Codegenerate/2.0.1/P3-Codegenerate-2.0.1.jar!/org/jeecgframework/p3/cg/task/CodeGenerateTask.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */